# web/nodes.py
#
#

__copyright__ = 'this file is in the public domain'

from plugs.webserver import httpd
from plugs.collective import nodesxml

def handle_nodes(event):
    result = nodesxml()
    if result:
        return [result, ]

if httpd:
    httpd.addhandler('nodes', handle_nodes)
